from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def dian(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("搜索菜谱")')
        ele=self.find_ele(loc)
        return ele
    def shu(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def sou(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜索"]')
        ele=self.find_ele(loc)
        return ele
    def dianyupian(self):
        loc=(By.XPATH,'(//android.widget.ImageView[@resource-id="com.xiachufang:id/common_photo_image_view"])[1]')
        ele=self.find_ele(loc)
        return ele
    def duanyan(self):
        loc = (By.XPATH,'//android.widget.TextView[@resource-id="com.xiachufang:id/tv_score"]')
        ele = self.find_ele(loc)
        return ele

































































































































































































































































































































































































